<extend name='Public/_Main' />
<block name='title'>{$danye.biaoti}</block>
<block name='body'>
    <style type="text/css">
    #allmap {
        width: 100%;
        height: 500px;
        overflow: hidden;
        margin: 0;
        font-family: "微软雅黑";
    }
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=AX0qV0zni1YNcBPeuQl81q0G"></script>
    <div class="our">
        <div class="container">
            <!-- <h2>{$danye.biaoti}</h2> -->
            <!--    <p>{$danye.create_time}</p> -->
            <div class="row">
                <!--  <div class='col-xs-12'>
                    {$danye.neirong}
                </div> -->
                <div id="allmap"></div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
    // 百度地图API功能
    var sContent = "销售电话：{:C('TEL')}<br/>地址：湖北省随州市曾都区时代广场<br/>开户机构：建行武汉市省直支行<br/>42001868608053029581(户名：湖北品高环保设备有限公司)";
    var map = new BMap.Map("allmap");
    var point = new BMap.Point(113.383523, 31.721443);
    map.centerAndZoom(point, 15);
    var marker = new BMap.Marker(point); // 创建标注
    map.addOverlay(marker);
    var infoWindow = new BMap.InfoWindow(sContent); // 创建信息窗口对象
    map.openInfoWindow(infoWindow, point); //开启信息窗口
    </script>
</block>
